package data;

public class DataBase {
    Data[] datas = new Data[100];
    private String checkInstation;//

    private int containSize=0;//当前信息容量
    public DataBase() {
        datas[0]=new Data("张三","111111111111111111","11111119876","单采");
        datas[1]=new Data("李四","222222222222222222","11111118765","单采");
        datas[2]=new Data("王五","333333333333333333","11111117654","单采");
        datas[3]=new Data("赵六","444444444444444444","11111116543","混采");
        datas[4]=new Data("路人甲","555555555555555555","11111115432","混采");
        datas[5]=new Data("路人乙","666666666666666666","11111114321","混采");
        datas[0].setOrdered(true);
        datas[1].setOrdered(true);
        datas[2].setOrdered(true);
        datas[3].setOrdered(true);
        datas[4].setOrdered(true);
        datas[5].setOrdered(true);

        containSize=6;
    }

    public int getContainSize() {
        return containSize;
    }

    public void setContainSize(int containSize) {
        this.containSize = containSize;
    }

    public Data getData(int pos) {
        return datas[pos];
    }

    public void setData(Data data) {
        this.datas[containSize]=data;
    }

    public void setData(int pos,Data data) {
        this.datas[pos]=data;
    }

    public String getCheckInstation() {
        return checkInstation;
    }

    public void setCheckInstation(String checkInstation) {
        this.checkInstation = checkInstation;
    }
}
